package com.haixiaoke.saas.enterprise.user.controller;

import com.haixiaoke.saas.common.core.domain.AjaxResult;
import com.haixiaoke.saas.system.BaseController;
import com.haixiaoke.saas.user.domain.UserConsumer;
import com.haixiaoke.saas.user.service.IUserConsumerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author panda
 * @Date 2024/11/20
 **/
@RestController
@RequestMapping("/enterprise/user/userConsumer")
public class EnterpriseBizUserConsumerController extends BaseController {
    @Autowired
    private IUserConsumerService userConsumerService;

    /**
     * 查询用户列表
     */
    @GetMapping("/list")
    public AjaxResult list(UserConsumer user) {
        List<UserConsumer> list = userConsumerService.selectUserConsumerList(user);
        return success(list);
    }
}
